home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / Log Library 1.01 / Readme
Encoding:
Internet Message Format  |  1994-07-03  |  2.2 KB  |  [TEXT/KAHL]

  1. From: dnebing@andy.bgsu.edu (Dave Nebinger)
  2. Subject: Log file routines
  3.  
  4. Here's a nice little, tiny, documented chunk of code for handling
  5. the creation and use of log files in your project.  It works great
  6. for those hard to debug items like bg-apps, inits, etc.
  7.  
  8. There are actually two different items here.  The first is a bugfix
  9. for the LogLib library that came out earlier.  The second item is
  10. new.  It is a component which implements the logging functions.
  11.  
  12. For those of you that don't know what a component is, here's a quick
  13. and dirty explanation.  Components are tiny extensions which the
  14. Component Manager takes care of.  All you, as a programmer, have to
  15. do is open the component and by using the value returned by the
  16. Component Manager you can use the library just like it was part of
  17. your application, yet the code doesn't exist in your app.  The
  18. Component Manager is part of QuickTime, AppleScript, and (supposedly)
  19. System 7.1 and up.
  20.  
  21. The code for the component and a test application showing how to use
  22. the component is included.  Also included are compiled versions of
  23. both so you can see how the component works (drop the component in
  24. the extension folder and restart before using the application).
  25.  
  26. The component is a full component which handles all of the Component
  27. Manager functions.  It also will draw it's own icon at startup time
  28. (Wow, cool! ;)
  29.  
  30. As part of the test application, there is also files called
  31. "Libsprintf.c/h" which are a standalone sprintf code (no ANSI/ANSI-small
  32. libs necessary!).  Read the beginning of the file for more info.
  33.  
  34. The code was written/compiled using Think C 7.0.3 with both the old headers
  35. and the new universal headers.  I took advantage of the fact that in
  36. "Mac #includes.c" for the universal headers there is a constant defined as
  37. NEW_HEADERS_AVAILABLE.  If you are using the universal headers with a
  38. different compiler that doesn't define this constant, just add the following
  39. line somewhere: #define NEW_HEADERS_AVAILABLE 1.  If you don't have
  40. the universal headers, you don't have anything to worry about.
  41.  
  42. This is all copyrighted to me (Dave Nebinger).  Feel free to email me with
  43. your questions and comments.  Also drop me a line if you plan to use
  44. the routines (I am just curious ;-)
  45.  
  46. Dave Nebinger.
  47.  
  48.